package cn.wolfcode.crm.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

    //跳转到主页
//    @RequiresPermissions("index")
//    @PermissionName("主页面")
    @RequestMapping("main")
    public String index(){
        return "main";
    }

    //跳转到登陆页面
    @RequestMapping("login")
    public String login(){
        return "redirect:/login.jsp";
    }
}
